<!-- 设置价格与库存 -->
<template>
	<view class="container">
		<text class="title">设置价格与库存</text>
		<view class="content">
			<view class="tabs">
				<text class="tab active">红色</text>
				<text class="tab">绿色</text>
				<text class="tab">蓝色</text>
			</view>
			<view class="form">
				<view class="form-item">
					<text class="label">红色，500g</text>
					<view class="input-box">
						<view class="input-border border-1px">
							<input class="input" type="text" value="" placeholder-style="color:#999;"
								placeholder="请输入价格" />
						</view>
						<view class="input-border border-1px">
							<input class="input" type="text" value="" placeholder-style="color:#999;"
								placeholder="请输入库存" />
						</view>
					</view>
				</view>
				<view class="form-item">
					<text class="label">红色，200g</text>
					<view class="input-box">
						<view class="input-border border-1px">
							<input class="input" type="text" value="" placeholder-style="color:#999;"
								placeholder="请输入价格" />
						</view>
						<view class="input-border border-1px">
							<input class="input" type="text" value="" placeholder-style="color:#999;"
								placeholder="请输入库存" />
						</view>
					</view>
				</view>
				<view class="form-item">
					<text class="label">红色，100g</text>
					<view class="input-box">
						<view class="input-border border-1px">
							<input class="input" type="text" value="" placeholder-style="color:#999;"
								placeholder="请输入价格" />
						</view>
						<view class="input-border border-1px">
							<input class="input" type="text" value="" placeholder-style="color:#999;"
								placeholder="请输入库存" />
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
</script>

<style lang="scss" scoped>
	.container {
		padding: 40rpx 25rpx 20rpx;

		.title {
			font-weight: bold;
			font-size: 30rpx;
			color: #222222;
			line-height: 1.5;
			padding-left: 4rpx;
		}
	}

	.content {
		padding: 30rpx 24rpx 35rpx;
		margin-top: 26rpx;
		background-color: white;
		border-radius: 20rpx;

		.tabs {
			display: flex;
			align-items: flex-end;

			.tab {
				font-size: 28rpx;
				color: #222222;

				&.active {
					font-weight: bold;
					font-size: 30rpx;
					color: #FE3333;
				}

				&+.tab {
					margin-left: 40rpx;
				}
			}
		}

		.form {
			margin-top: 32rpx;

			&-item {
				&+.form-item {
					margin-top: 40rpx;
				}

				.label {
					font-size: 28rpx;
					color: #222222;
					line-height: 1.5;
				}

				.input-box {
					display: grid;
					grid-template-columns: repeat(2, 1fr);
					column-gap: 24rpx;
					margin-top: 30rpx;

					.input-border {

						&::after {
							border-radius: 20rpx;
						}

						.input {
							font-size: 28rpx;
							color: #222222;
							height: 80rpx;
							padding-left: 14rpx;
							// border: 1rpx solid #E9E9E9;
							border-radius: 10rpx;
							box-sizing: border-box;
						}
					}

				}
			}
		}
	}
</style>